//
//  UserMessageModel.h
//  AILock
//
//  Created by 谭亚明 on 2020/7/10.
//  Copyright © 2020 tym. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UserMessageModel : NSObject

@property(nonatomic,assign) NSInteger familyId;
@property(nonatomic,assign) NSInteger id;
@property(nonatomic,copy) NSString *newsTitle;
@property(nonatomic,copy) NSString *newsContent;
@property(nonatomic,assign) BOOL readed;
@property(nonatomic,copy) NSString *createTime;
@property(nonatomic,copy) NSString *familyName;
@property(nonatomic,copy) NSString *readTime;
@property(nonatomic,assign) NSInteger equipmentId;
@property(nonatomic,assign) NSInteger type;//消息类型 1/系统消息 2/家庭消息 3/设备消息 4/客服小秘书

@property(nonatomic,copy) NSString *equipmentMsgCode;
@property(nonatomic,copy) NSString *userId;
@property(nonatomic,copy) NSString *equipmentName;
@property(nonatomic,assign) NSInteger equipmentMessageConfigId;
@property(nonatomic,copy) NSString *equipmentImage;
@property(nonatomic,assign) BOOL open;
-(NSString*)getEquipmentImage;

-(NSString*)getTypeStr;

@end


@interface MessageConfig : NSObject

@property(nonatomic,assign) NSInteger userMessageConfigId;
@property(nonatomic,assign) BOOL userMessageIsOpen;
@property(nonatomic,copy) NSString *startTime;
@property(nonatomic,copy) NSString *endTime;
@property(nonatomic,copy) NSArray <UserMessageModel*>*userEquipmentMessageConfigList;
@property(nonatomic,strong) UserMessageModel*userEquipmentMessageTotalConfigData;
@end

NS_ASSUME_NONNULL_END
